package view.mediator.weapon.double_sword
{
	import org.robotlegs.mvcs.StarlingMediator;
	
	import service.SQLService;
	
	import view.component.weapon.double_sword.DoubleSwordMotionView;
	
	
	/**
	 * DoubleSwordMotionView界面中介
	 * @author £iang
	 * 
	 */	
	public class DoubleSwordMotionViewMediator extends StarlingMediator
	{
		//-----------------------------
		// variables
		//-----------------------------
		
		/** DoubleSwordMotionView界面 */
		[Inject]
		public var doubleSwordMotionView: DoubleSwordMotionView;
		/** sql */
		[Inject]
		public var sqlService:SQLService;
		
		//-----------------------------
		// properties
		//-----------------------------
		
		//-----------------------------
		// setter&getter
		//-----------------------------
		
		//-----------------------------
		// methods
		//-----------------------------
		
		/**
		 * 注册函数 
		 * 
		 */		
		override public function onRegister():void
		{
			doubleSwordMotionView.setListData( sqlService.getDoubleSwordMotion() );
			doubleSwordMotionView.skipShowAnimation();
		}
		
		//-----------------------------
		// events
		//-----------------------------
		
		//-----------------------------
		// dispose
		//-----------------------------
		
		/**
		 * 移除函数 
		 * 
		 */		
		override public function onRemove():void
		{
			super.onRemove();
		}
		
		//-----------------------------
		// construction
		//-----------------------------
		
		/**
		 * 构造函数
		 *
		 */
		public function DoubleSwordMotionViewMediator()
		{
			super();
		}
	}
}